<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" isELIgnored="false" %>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>个人信息</title>
  <meta name="renderer" content="webkit">
  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
  <meta name="apple-mobile-web-app-status-bar-style" content="black">
  <meta name="apple-mobile-web-app-capable" content="yes">
  <meta name="format-detection" content="telephone=no">
  <link rel="stylesheet" type="text/css" href="common/layui/css/layui.css" media="all">
  <link rel="stylesheet" type="text/css" href="common/bootstrap/css/bootstrap.css" media="all">
  <link rel="stylesheet" type="text/css" href="common/global.css" media="all">
  <link rel="stylesheet" type="text/css" href="css/personal.css" media="all">
</head>
<body>
<section class="layui-larry-box">
  <div class="larry-personal">
    <div class="layui-tab">
      <blockquote class="layui-elem-quote news_search">

        <div class="layui-inline">
          <div class="layui-input-inline">
            <input value="" placeholder="请输入关键字" class="layui-input search_input" type="text">
          </div>
          <a class="layui-btn search_btn">查询</a>
        </div>

        <div class="layui-inline">
          <div style="color: red" class="layui-form-mid layui-word-aux">${msg}</div>
        </div>
      </blockquote>

      <div class="layui-tab-content larry-personal-body clearfix mylog-info-box">
        <!-- 操作日志 -->
        <div class="layui-tab-item layui-field-box layui-show">
          <table class="layui-table table-hover" lay-even="" lay-skin="nob">
            <thead>
            <tr>
              <th><input type="checkbox" id="selected-all"></th>
              <th>ID</th>
              <th>用户名</th>
              <th>邮箱地址</th>
              <th>电话</th>
              <th>地址</th>
              <th>创建时间</th>
              <th>操作</th>
            </tr>
            </thead>
            <tbody>
            <c:forEach var="c" items="${UserList}" varStatus="status">
              <tr>
                <td><input type="checkbox"></td>
                <td>${c.id}</td>
                <td>${c.username}</td>
                <td>${c.email}</td>
                <td>${c.phone}</td>
                <td>${c.adress}</td>
                <td>${c.create_time}</td>
                <td>
                  <%--<a class="layui-btn layui-btn-mini news_edit" href="/manage/findUserById.do?id=${c.id}"><i class="iconfont icon-edit"></i>
                    编辑用户信息</a>--%>
                    <%--<a class="layui-btn layui-btn-normal layui-btn-mini news_collect"><i class="layui-icon"></i> 收藏</a>--%>
                  <a class="layui-btn layui-btn-danger layui-btn-mini news_del" href="/manage/deleteUser.do?id=${c.id}" data-id="1"><i
                          class="layui-icon"></i> 删除</a>
                </td>
              </tr>
            </c:forEach>
            <%--<tr>
              <td><input type="checkbox"></td>
              <td>109</td>
              <td>admin</td>
              <td>2016-12-19</td>
              <td>test</td>
              <td>test</td>
              <td>test</td>
              <td>test</td>
              <td>test</td>
              <td>127.0.0.1</td>
            </tr>
            <tr>
              <td><input type="checkbox"></td>
              <td>108</td>
              <td>admin</td>
              <td>2016-12-19</td>
              <td>test</td>
              <td>test</td>
              <td>test</td>
              <td>test</td>
              <td>test</td>
              <td>127.0.0.1</td>
            </tr>
            <tr>
              <td><input type="checkbox"></td>
              <td>107</td>
              <td>admin</td>
              <td>2016-12-19</td>
              <td>test</td>
              <td>test</td>
              <td>test</td>
              <td>test</td>
              <td>test</td>
              <td>127.0.0.1</td>
            </tr>
            <tr>
              <td><input type="checkbox"></td>
              <td>106</td>
              <td>admin</td>
              <td>2016-12-19</td>
              <td>test</td>
              <td>test</td>
              <td>test</td>
              <td>test</td>
              <td>test</td>
              <td>127.0.0.1</td>
            </tr>
            <tr>
              <td><input type="checkbox"></td>
              <td>105</td>
              <td>admin</td>
              <td>2016-12-19</td>
              <td>test</td>
              <td>test</td>
              <td>test</td>
              <td>test</td>
              <td>test</td>
              <td>127.0.0.1</td>
            </tr>
            <tr>
              <td><input type="checkbox"></td>
              <td>104</td>
              <td>admin</td>
              <td>2016-12-19</td>
              <td>test</td>
              <td>test</td>
              <td>test</td>
              <td>test</td>
              <td>test</td>
              <td>127.0.0.1</td>
            </tr>
            <tr>
              <td><input type="checkbox"></td>
              <td>103</td>
              <td>admin</td>
              <td>2016-12-19</td>
              <td>test</td>
              <td>test</td>
              <td>test</td>
              <td>test</td>
              <td>test</td>
              <td>127.0.0.1</td>
            </tr>
            <tr>
              <td><input type="checkbox"></td>
              <td>102</td>
              <td>admin</td>
              <td>2016-12-19</td>
              <td>test</td>
              <td>test</td>
              <td>test</td>
              <td>test</td>
              <td>test</td>
              <td>127.0.0.1</td>
            </tr>
            <tr>
              <td><input type="checkbox"></td>
              <td>101</td>
              <td>admin</td>
              <td>2016-12-19</td>
              <td>test</td>
              <td>test</td>
              <td>test</td>
              <td>test</td>
              <td>test</td>
              <td>127.0.0.1</td>
            </tr>
            <tr>
              <td><input type="checkbox"></td>
              <td>100</td>
              <td>admin</td>
              <td>2016-12-19</td>
              <td>test</td>
              <td>test</td>
              <td>test</td>
              <td>test</td>
              <td>test</td>
              <td>127.0.0.1</td>
            </tr>--%>
            </tbody>
          </table>
          <div class="larry-table-page clearfix">
            <a href="javascript:;" class="layui-btn layui-btn-small"><i
                    class="iconfont icon-shanchu1"></i>删除</a>
            <div id="page" class="page"></div>
          </div>
        </div>
        <!-- 登录日志 -->
        <div class="layui-tab-item layui-field-box">
          <table class="layui-table table-hover" lay-even="" lay-skin="nob">
            <thead>
            <tr>
              <th><input type="checkbox" id="selected-all"></th>
              <th>ID</th>
              <th>管理员账号</th>
              <th>状态</th>
              <th>最后登录时间</th>
              <th>上次登录IP</th>
              <th>登录IP</th>
              <th>IP所在位置</th>
            </tr>
            </thead>
            <tbody>
            <tr>
              <td><input type="checkbox"></td>
              <td>110</td>
              <td>admin</td>
              <td>后台登录成功</td>
              <td>2016-12-19 14:26:03</td>
              <td>127.0.0.1</td>
              <td>127.0.0.1</td>
              <td>Unknown</td>
            </tr>
            </tbody>
          </table>
          <div class="larry-table-page clearfix">
            <a href="javascript:;" class="layui-btn layui-btn-small"><i
                    class="iconfont icon-shanchu1"></i>删除</a>
            <div id="page2" class="page"></div>
          </div>
        </div>
      </div>
    </div>
  </div>
</section>
<script type="text/javascript" src="common/layui/layui.js"></script>
<script type="text/javascript">
  layui.use(['jquery', 'layer', 'element', 'laypage'], function () {
    window.jQuery = window.$ = layui.jquery;
    window.layer = layui.layer;
    var element = layui.element(),
        laypage = layui.laypage;

    laypage({
      cont: 'page',
      pages: 10 //总页数
      ,
      groups: 5 //连续显示分页数
      ,
      jump: function (obj, first) {
        //得到了当前页，用于向服务端请求对应数据
        var curr = obj.curr;
        if (!first) {
          //layer.msg('第 '+ obj.curr +' 页');
        }
      }
    });

    laypage({
      cont: 'page2',
      pages: 10 //总页数
      ,
      groups: 5 //连续显示分页数
      ,
      jump: function (obj, first) {
        //得到了当前页，用于向服务端请求对应数据
        var curr = obj.curr;
        if (!first) {
          //layer.msg('第 '+ obj.curr +' 页');
        }
      }
    });
  });
</script>
</body>
</html>